package com.qf.exception;

import com.qf.enums.ExceptionInfoEnum;
import lombok.Getter;

@Getter
public class SsmException extends RuntimeException {

    private Integer code;

    public SsmException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public SsmException(ExceptionInfoEnum exceptionInfoEnum) {
        super(exceptionInfoEnum.getMsg());
        this.code =exceptionInfoEnum.getCode();
    }
}
